package com.llp.declaresystem.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * @BelongsProject: declare-system
 * @BelongsPackage: com.llp.declaresystem.domain.dto
 * @Author: bovan
 * @Date: 2022/11/25 11:00
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDto {

    Integer uid;

//    @Length(message = "长度不能小于6，大于9",max = 9,min = 6)
//    @NotBlank(message = "不能为空")
    String oldPassword;

    @Length(message = "长度不能小于5且不能大于9",max = 9,min = 5)
    @NotBlank(message = "不能为空")
    String newPassword;

    @Length(message = "长度不能小于5且不能大于9",max = 9,min = 5)
    @NotBlank(message = "不能为空")
    String reNewPassword;
}
